import { post, get, del } from "../utils/request";

// 获取购物车数据
export const loadCartAPI = () => get("/api/v1/shop_carts");

// 加入购物车
export const addToCratAPI = (data) => post("/api/v1/shop_carts", data);

// 从购物车根据id删除商品
export const delFromCartAPI = (id) => del("/api/v1/shop_carts/" + id);
